package com.huaweicloud.dtseSystem;


import com.huaweicloud.commons.response.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

@FeignClient("dtse-system")
@RestController
public interface UserSystemFeign {

    @PostMapping("/login")
     Result login(@RequestBody Map<String, String> loginMap);

    @PostMapping("/profile")
     Result profile(HttpServletRequest request);

    @PostMapping("/upload")
    Result upLoadOne(@RequestParam("file") MultipartFile multipartFile, HttpServletRequest request);

}

